package cn.itheima.domain;

import lombok.Data;

import java.util.List;


    @Data
    public class PageBean<T> {

        private List<T> list;
        private int totalCount;
        private int totalPage;
        private int pageNumber;
        private int pageSize;

        // 起始数据
        private int startNum;
        // 结尾数据
        private int endNum;


        public PageBean(List<T> list, int totalCount, int totalPage, int pageNumber, int pageSize, int startNum, int endNum) {
            this.list = list;
            this.totalCount = totalCount;
            this.totalPage = totalPage;
            this.pageNumber = pageNumber;
            this.pageSize = pageSize;
            this.startNum = startNum;
            this.endNum = endNum;
        }
    }